//为了能够在非组件环境下拿到路由信息，需要我们安装一个history包
//比如需要在请求拦截里在token失效时需要跳回到登录页时进行路由跳转
//npm i history
// https://github.com/remix-run/react-router/issues/8264
import { createBrowserHistory } from "history";
import { unstable_HistoryRouter as HistoryRouter } from "react-router-dom";
const history = createBrowserHistory();

export { HistoryRouter, history };
